home *** CD-ROM | disk | FTP | other *** search
/ Revolution - Das Atari CD Magazin 1997 / Revolution - Das Atari CD Magazin 1.iso / software / progtool / olga / olga.lzh / source / OLGA.H next >
C/C++ Source or Header  |  1996-11-20  |  3KB  |  97 lines

  1. /* OLGA Rev 1.2 (11/20/96)                       */
  2. /* Thomas_Much@ka2.maus.de                       */
  3. /* http://www.uni-karlsruhe.de/~Thomas.Much/OLGA */
  4.  
  5. #ifndef OLGA_H
  6. #define OLGA_H
  7.  
  8.  
  9. #define OLE_INIT                 0x4950
  10. #define OLE_EXIT                 0x4951
  11. #define OLE_NEW                  0x4952
  12.  
  13. #define OLGA_INIT                0x1236
  14. #define OLGA_UPDATE              0x1238
  15. #define OLGA_ACK                 0x1239
  16. #define OLGA_RENAME              0x123a
  17. #define OLGA_OPENDOC             0x123b
  18. #define OLGA_CLOSEDOC            0x123c
  19. #define OLGA_LINK                0x123d
  20. #define OLGA_UNLINK              0x123e
  21. #define OLGA_UPDATED             0x123f
  22. #define OLGA_RENAMELINK          0x1240
  23. #define OLGA_LINKRENAMED         0x1241
  24. #define OLGA_GETOBJECTS          0x1242
  25. #define OLGA_OBJECTS             0x1243
  26. #define OLGA_BREAKLINK           0x1244
  27. #define OLGA_LINKBROKEN          0x1245
  28. #define OLGA_START               0x1246
  29. #define OLGA_GETINFO             0x1247
  30. #define OLGA_INFO                0x1248
  31. #define OLGA_IDLE                0x1249
  32. #define OLGA_ACTIVATE            0x124a
  33. #define OLGA_EMBED               0x124b
  34. #define OLGA_EMBEDDED            0x124c
  35. #define OLGA_UNEMBED             0x124d
  36. #define OLGA_GETSETTINGS         0x124e
  37. #define OLGA_SETTINGS            0x124f
  38. #define OLGA_REQUESTNOTIFICATION 0x1250
  39. #define OLGA_RELEASENOTIFICATION 0x1251
  40. #define OLGA_NOTIFY              0x1252
  41. #define OLGA_NOTIFIED            0x1253
  42. #define OLGA_SERVERTERMINATED    0x1254
  43. #define OLGA_CLIENTTERMINATED    0x1255
  44. #define OLGA_INPLACEUPDATE       0x1256
  45.  
  46.  
  47. #define OL_SERVER                0x0001
  48. #define OL_CLIENT                0x0002
  49. #define OL_PEER                  (OL_SERVER | OL_CLIENT)
  50. #define OL_IDLE                  0x0800
  51. #define OL_PIPES                 0x1000
  52. #define OL_START                 0x2000
  53. #define OL_MANAGER               0x4000
  54. #define OL_OEP                   0x0001
  55.  
  56. #define OLS_TYPE                      1
  57. #define OLS_EXTENSION                 2
  58. #define OLS_NAME                      3
  59.  
  60.  
  61. typedef struct
  62. {
  63.     int x,y,w,h,
  64.         x1,y1,x2,y2;
  65. } GRECT;
  66.  
  67.  
  68. typedef struct
  69. {
  70.     long         magic;
  71.     unsigned int version,
  72.                  skip;
  73. } OLGAInfHeader;
  74.  
  75.  
  76. typedef struct
  77. {
  78.     long id,
  79.          length;
  80. } OLGABlockHeader;
  81.  
  82.  
  83. typedef struct ObjectInfo
  84. {
  85.     char  *Filename;
  86.     AESPB *ClientGEMPB;
  87.     long   ClientData,
  88.            ServerData;
  89.     int    CBLock,
  90.            CBCount;
  91.     void   cdecl (*CBDraw)    (ObjectInfo *objectinfo, int outScreen, int outHandle, int outDevID, GRECT *Size, GRECT *Clip);
  92.     void   cdecl (*CBUnembed) (ObjectInfo *objectinfo);
  93. } OLGAObjectInfo;
  94.  
  95.  
  96. #endif
  97.